<div class="lugares index">
	<h2><?php __('Lugares');?></h2>

<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('Novo Lugar', true), array('action' => 'add')); ?></li>
	</ul>
</div>

<div class="total">
<?php
	echo $this->Paginator->counter(array(
	'format' => __('Página %page% de %pages%, num total de %count% registros', true)
	));
	?></div>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id_lugares');?></th>
			<th><?php echo $this->Paginator->sort('lugares');?></th>
			<th class="actions"><?php __('Opções');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($lugares as $lugare):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $lugare['Lugare']['id_lugares']; ?>&nbsp;</td>
		<td><?php echo $lugare['Lugare']['lugares']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->image('view.png', array('alt'=>'Ver', 'title'=>'Ver', 'url'=> array('action' => 'view', $lugare['Lugare']['id_lugares']))); ?>
			<?php echo $this->Html->image('edit.png', array('alt'=>'Editar', 'title'=>'Editar', 'url'=> array('action' => 'edit', $lugare['Lugare']['id_lugares']))); ?>
			<?php echo $this->Html->link($this->Html->image('trash.png', array('alt'=>'Apagar', 'title'=>
'Apagar')), array('action' => 'delete', $lugare['Lugare']['id_lugares']), array('escape'=>false), sprintf(__('Deseja apagar o registro %s?', true), $lugare['Lugare']['id_lugares'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Próximo', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
